using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
namespace TurbaconPhone
{
    class TurBacon
    {
        #region Fields
        static Input input = new Input();

        public static int kickLength = 200;
        #endregion

        #region Properties
        public static StateManager StateManager { get; private set; }
        public static Game1 Game { get; private set; }
        public static SpriteBatch Batch { get; private set; }
        public static ContentManager Content { get; private set; }
        public static Random Random { get; private set; }
        public static GameInfo GameInfo { get; private set; }

        public static Input Input
        {
            get { return input; }
        }
        #endregion

        public static void init(Game1 game, SpriteBatch batch)
        {
            StateManager = new StateManager();
            Content = new ContentManager();
            
            Game = game;
            Batch = batch;

            Random = new Random();
            GameInfo = new GameInfo();
        }

        public static float RandomBetween(float min, float max)
        {
            return min + (float)Random.NextDouble() * (max - min);
        }
    }
}
